package com.woniu.user.mapper;

import com.woniu.user.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface CommentMapper extends BaseMapper<Comment> {

    @Select("select * from t_comment where article_id = #{articleId} and is_deleted = 0 order by created_time")
    List<Comment> selectListComment(String articleId);
}
